package com.dotflat.staffExtend.domain;

import com.dotflat.rest.domain.AreableObjectBase;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

@Entity
@Table(name = "ex_staff_extend_rank",
        uniqueConstraints = {
                @UniqueConstraint(columnNames = {
						"areaId",
                        "rankCircleId",
                        "staffId",
                })
        })
@Data
@EqualsAndHashCode(callSuper = true)
public class StaffExtendInfoRank extends AreableObjectBase {

	@Column(columnDefinition = "varchar(32)  COMMENT '员工id'")
	private String staffId;

	@Column(columnDefinition = "varchar(500)  COMMENT '标签，竖线分割'")
	private String tags;

	@Column(columnDefinition = "varchar(32)  COMMENT '评分周期id'")
	private String rankCircleId;

	@Column(columnDefinition = "varchar(500)  COMMENT '评分周期'")
	private String rankCircleName;

	@Column(columnDefinition = "int default 0   COMMENT '最终评分'")
	private Integer rankVal;

	@Column(columnDefinition = "int default 0   COMMENT '管理员评分数量'")
	private Integer managerRankCount;

	@Column(columnDefinition = "int default 0   COMMENT '总分数'")
	private Integer managerRankTotal;

	@Column(columnDefinition = "int default 0   COMMENT '家长评分数量'")
	private Integer parentRankCount;

	@Column(columnDefinition = "int default 0   COMMENT '家长评分总数'")
	private Integer parentRankTotal;

	@Column(columnDefinition = "int default 0   COMMENT '学习得分数量'")
	private Integer studyRankCount;

	@Column(columnDefinition = "int default 0   COMMENT '学习得分总数'")
	private Integer studyRankTotal;

	@Column(columnDefinition = "int default 0   COMMENT '培训得分数量'")
	private Integer trainingRankCount;

	@Column(columnDefinition = "int default 0   COMMENT '培训得分总数'")
	private Integer trainingRankTotal;

	@Column(columnDefinition = "int default 0   COMMENT '总学习时间秒'")
	private Integer studyTimeTotal;


}
